package demo;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2023-03-13
 * Time: 15:54
 */
public class Main7 {
    public static void main(String[] args) {
        int []arr = {1,2,3,4};
        int[] func = func(arr);
        System.out.println(Arrays.toString(arr));
        System.out.println(Arrays.toString(func));
    }

    private static int [] func(int[] arr) {
        arr = new int[]{5,6,7,8};
        return arr;
    }
}
